home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / wpasupplicant.postinst < prev    next >
Text File  |  2008-09-03  |  1KB  |  40 lines

  1. #!/bin/sh -e
  2. # This script can be called in the following ways:
  3. #
  4. # After the package was installed:
  5. #       <postinst> configure <old-version>
  6. #
  7. #
  8. # If prerm fails during upgrade or fails on failed upgrade:
  9. #       <old-postinst> abort-upgrade <new-version>
  10. #
  11. # If prerm fails during deconfiguration of a package:
  12. #       <postinst> abort-deconfigure in-favour <new-package> <version>
  13. #                  removing <old-package> <version>
  14. #
  15. # If prerm fails during replacement due to conflict:
  16. #       <postinst> abort-remove in-favour <new-package> <version>
  17.  
  18. case "$1" in
  19.     configure)
  20.         # Add the netdev group unless it's already there
  21.         if ! getent group netdev >/dev/null; then
  22.             addgroup --quiet --system netdev || true
  23.         fi
  24.         ;;
  25.     abort-upgrade|abort-deconfigure|abort-remove)
  26.         ;;
  27.     *)
  28.         echo "$0 called with unknown argument \`$1'" 1>&2
  29.         exit 1
  30.         ;;
  31. esac
  32.  
  33. # Automatically added by dh_installinit
  34. if [ -x "/etc/init.d/wpa-ifupdown" ]; then
  35.     update-rc.d wpa-ifupdown start 15 0 6 . >/dev/null || exit $?
  36. fi
  37. # End automatically added section
  38.  
  39. exit 0
  40.